//package com.算法4.sort;
//
//import java.util.Comparator;
//import java.util.Date;
//
///**
// * @description: TODO 类描述
// * @author: YUANG
// * @date: 2022/2/25
// **/
//public class Transaction {
//    private final String who;
//    private final Date when;
//    private final Double amount;
//
//    public static class WhoOrder implements Comparator<Transaction> {
//        @Override
//        public int compare(Transaction v, Transaction w) {
//            return v.who.compareTo(w.who);
//        }
//    }
//
//
//    public static class WhenOrder implements  Comparator<Transaction>{
//        @Override
//        public int compare(Transaction v, Transaction w) {
//            return v.when.compareTo(w.when);
//        }
//    }
//
//    public static class HowMuchOrder implements Comparator<Transaction> {
//        @Override
//        public int compare(Transaction v, Transaction w) {
//            return v.amount.compareTo(w.amount);
//        }
//    }
//
//}
